package thread03;

public class Thread01 extends Thread {
    @Override
    public void run() {
        //线程要执行的任务
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            throw new RuntimeException(e);
        }

        for (int i = 0; i < 10; i++) {
            //System.out.println(Thread.currentThread().getName() + "..." + i);
            System.out.println(this.getName() + "..." + i);
        }
    }
}
